import 'package:demo/page/content_page.dart';
import 'package:demo/page/player_page.dart';
import 'package:demo/pages.dart';
import 'package:fluro/fluro.dart';

import 'browser_page.dart';
import 'i_router.dart';

class GeneralRouter extends IRouter {
  @override
  void define(FluroRouter router) {
    router.define(Pages.browser, handler: Handler(handlerFunc: (context, __) {
      dynamic arguments = context?.arguments;
      return BrowserPage(arguments: arguments);
    }));
    router.define(Pages.content, handler: Handler(handlerFunc: (context, __) {
      return const ContentPage();
    }));
    router.define(Pages.player, handler: Handler(handlerFunc: (context, __) {
      return const PlayerPage();
    }));
  }
}
